import React from 'react';
// @ts-ignore
import { Table } from 'abc-ui';

export default () => {
  const data = [];
  for (let i = 0; i < 30; i++) {
    data.push({
      key: i,
      name: `Edward King ${i}`,
      age: 32,
      address: `London, Park Lane no. ${i}`,
    });
  }

  const columns = [
    {
      title: '姓名',
      dataIndex: 'name',
      key: 'name',
      width: 200,
    },
    {
      title: '年龄',
      dataIndex: 'age',
      key: 'age',
      width: 150,
    },
    {
      title: '住址',
      dataIndex: 'address',
      key: 'address',
    },
  ];
  return (
    <div>
      <Table dataSource={data} columns={columns} scroll={{ y: 240 }} />
    </div>
  );
};
